#include <iostream>
// type conversion
int main()
{
    bool b = 42;
    int i = b;
    i = 3.14;
    double pi = i;
    unsigned char c = 1;

    std::cout << "bool(b): "    << b << std::endl;
    std::cout << "int(i): "     << i << std::endl;
    std::cout << "double(pi): " << pi << std::endl;
    std::cout << "unsigned char(c): " << c << std::endl;

    return 0;
}